﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Department/Master.Master" AutoEventWireup="true"
    CodeBehind="PendingRejectedOrder.aspx.cs" Inherits="logicunivesityinventorystore.Department.PendingRejectedOrder" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="../js/ModelPopUp.js" type="text/javascript"></script>
    <link href="../StyleSheet.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content6" runat="server" ContentPlaceHolderID="ContentPlaceHolder2">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <h1>
        Pending/Rejected Orders:</h1>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <div>
        <asp:Label ID="lblList" Text="Your List:" runat="server" Font-Bold="True" Font-Size="Large" />
        <br />
        <br />
            <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Height="1px" 
                        Width="1px" BackColor="White" />
           
        <asp:GridView ID="gvReqList" runat="server" AutoGenerateColumns="False" 
            DataSourceID="ObjectDataSource1" onrowdatabound="gvReqList_RowDataBound1">
            <Columns>
                <asp:TemplateField HeaderText="Form ID.">
                    <ItemTemplate>
                        <asp:LinkButton ID="lbtnFormId" runat="server" Text='<%# Eval("formID") %>'></asp:LinkButton>
            <cc1:ModalPopupExtender ID="ModalPopupExtender1" BackgroundCssClass="modalBackground"
                runat="server" CancelControlID="btnCancel" OkControlID="btnOkay" TargetControlID="lbtnFormId"
                PopupControlID="Panel1" Drag="true" PopupDragHandleControlID="PopupHeader" 
                            OnOkScript="NewExpanseOkay();" BehaviorID="EditModalPopup">
            </cc1:ModalPopupExtender>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="date" HeaderText="Date" />
                <asp:BoundField DataField="status" HeaderText="Status" />
            </Columns>
        </asp:GridView>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
            SelectMethod="FindPendingRejectedForm" 
            TypeName="BusinessLogicLayer.RequisitionFacade">
            <SelectParameters>
                <asp:ControlParameter ControlID="lblempIDhidden" Name="empid" 
                    PropertyName="Text" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
        <br />
        <asp:Label ID="lblempIDhidden" runat="server" Visible="False"></asp:Label>
    </div>
    <div class="popup_Buttons" style="display: none">
                 <input id="btnOkay" value="Done" type="button" />
                <input id="btnCancel" value="Cancel" type="button" />
            </div>
            <div id="Panel1" style="display: none; width:400px;" class="modalPopup">
                <iframe id="frameeditexpanse" frameborder="0" src="" height="400" scrolling="auto" width="400";
                    ></iframe>
            </div>
    </ContentTemplate>
                    <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click" />
                </Triggers>
        </asp:UpdatePanel>
</asp:Content>
<asp:Content ID="Content7" runat="server" 
    contentplaceholderid="ContentPlaceHolder4">
    
                </asp:Content>
<asp:Content ID="Content8" runat="server" 
    contentplaceholderid="ContentPlaceHolder5">
       
                </asp:Content>

